#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"
int main()
{
	ST s;
	STInit(&s);
	STpush(&s, 1);
	STpush(&s, 2);
	STpush(&s, 3);
	STpush(&s, 4);
	STpush(&s, 5);
	while (!STEmpty(&s))
	{
		int top = STTop(&s);
		printf("%d\n", top);
		STpop(&s);
	}
	STDestory(&s);
	return 0;
}